package com.ouc.mapper;

import com.ouc.entity.Circle;
import com.ouc.entity.Rectangle;
import com.ouc.entity.Shape;
import com.ouc.entity.Triangle;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Name: ShapeMapper
 * @Description:
 * @Author: Mr.Tong
 */
@Mapper
@Repository
public interface ShapeMapper {

    public Boolean insertCircleInfo(Circle circle);

    public Boolean insertRectangleInfo(Rectangle rectangle);

    public Boolean insertTriangleInfo(Triangle triangle);

    public Shape getShapeById(Integer id);

    public Boolean deleteShapeById(Integer id);

    public Shape getShapeByShapeCode(String shapeCode);

    public List<Shape> getAllShape();


}
